package com.ruoyi.wb.enmus;


/**
 * 保修单/订单状态
 *
 * @author ruoyi
 */
public enum WbRepairApplyOrderType {

    PENDING_ORDER(1, "待接单"),
    TO_BE_STARTED(2, "待开始"),
    UNDERWAY(3,"进行中"),
    UNPAID(4, "待支付"),
    COMPLETED(5, "已完成"),
    CANCELLATION(6,"待分配")
    ;

    private final long  code;
    private final String info;

    WbRepairApplyOrderType(long code, String info)
    {
        this.code = code;
        this.info = info;
    }

    public long getCode()
    {
        return code;
    }

    public String getInfo()
    {
        return info;
    }

    public static String getMessage(long num){

        for (WbRepairApplyOrderType value : WbRepairApplyOrderType.values()) {
            if (value.getCode()==num){
                return value.getInfo();
            }
        }
        return "";
    }



}
